









<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<TITLE>业务单完工 | 管理易-广告加工制作管理软件  企业版 9.28  | 易凯软件</TITLE>
<script src="../js/minierp.js?ver=ent9.27"></script>
<head>
<link href="../css/Query.css?ver=ent9.27" rel="stylesheet" type="text/css">
<link href="/calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?ver=ent9.27" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../css/BillList.css?ver=ent9.27" />
<script src="../js/QueryList.js?ver=ent9.27"></script>
<script src="../js/popup_ext.js?ver=ent9.27"></script>
<script src="/calendar/dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?ver=ent9.27"></script>
<script language="javascript">
	function doJump(pageIndex){
		if(window.event.keyCode==13){
			doGo(pageIndex);
		}
	}
	function doCancel(){
		window.close();
	}
	function doInit(){
		//Window_Onload();
		document.getElementById("bill_code").focus();
	}
	function createPageParaStr(){
		var str="start_date="+encodeURIComponent(document.getElementById("start_date").value);
		str=str+"&end_date="+encodeURIComponent(document.getElementById("end_date").value);
		str=str+"&del_start="+encodeURIComponent(document.getElementById("del_start").value);
		str=str+"&del_end="+encodeURIComponent(document.getElementById("del_end").value);
		str=str+"&est_name="+encodeURIComponent(document.getElementById("est_name").value);
		str=str+"&bill_code="+encodeURIComponent(document.getElementById("bill_code").value);
		str=str+"&content="+encodeURIComponent(document.getElementById("content").value);
		str=str+"&foll_name="+encodeURIComponent(document.getElementById("foll_name").value);
		str=str+"&wc_id="+document.getElementById("wc_id").value;
		str=str+"&ts_id="+document.getElementById("ts_id").value;
		str=str+"&order_by="+document.getElementById("order_by").value;
		str=str+"&order_sc="+document.getElementById("order_sc").value;
		var maked="A";
		if(document.getElementById("make1").checked){
			maked="Y";
		}else if(document.getElementById("make2").checked){
			maked="N";
		}
		str=str+"&maked="+maked;
		str=str+"&mng_name="+encodeURIComponent(document.getElementById("mng_name").value);
		str=str+"&mkn="+encodeURIComponent(document.getElementById("mkn").value);
		return str;
	}
	
	function createProgramParaStr(){
		var str="start_date="+encodeURIComponent(document.getElementById("hid_start_date").value);
		str=str+"&end_date="+encodeURIComponent(document.getElementById("hid_end_date").value);
		str=str+"&del_start="+encodeURIComponent(document.getElementById("hid_del_start").value);
		str=str+"&del_end="+encodeURIComponent(document.getElementById("hid_del_end").value);
		str=str+"&est_name="+encodeURIComponent(document.getElementById("hid_est_name").value);
		str=str+"&bill_code="+encodeURIComponent(document.getElementById("hid_bill_code").value);
		str=str+"&content="+encodeURIComponent(document.getElementById("hid_content").value);
		str=str+"&foll_name="+encodeURIComponent(document.getElementById("hid_foll_name").value);
		str=str+"&wc_id=";
		str=str+"&ts_id=2";
		str=str+"&order_by=";
		str=str+"&order_sc=";
		str=str+"&maked=";
		str=str+"&mng_name="+encodeURIComponent(document.getElementById("hid_mng_name").value);
		str=str+"&mkn="+encodeURIComponent(document.getElementById("hid_mkn").value);
		return str;
	}
	function doSearch(){
		var str;
		if(IsAdvSearch){//高级
			str="search_type=1";
			if(document.getElementById("cb_bill_code").checked){
				var billCode=document.getElementById("bill_code").value.trim();
				if(billCode==null || billCode==""){
					ShowAlert('提示框','请输入业务单号',200,100);
					return;
				}
				str=str+"&cb_bill_code=1";
			}
			if(document.getElementById("cb_order_date").checked){
				if(!checkDateStr(document.getElementById("start_date").value,"订货开始日期")){
					return;
				}
				if(!checkDateStr(document.getElementById("end_date").value,"订货结束日期")){
					return;
				}
				str=str+"&cb_order_date=1";
			}
			if(document.getElementById("cb_del_date").checked){
				if(!checkDateStr(document.getElementById("del_start").value,"交货开始日期")){
					return;
				}
				if(!checkDateStr(document.getElementById("del_end").value,"交货结束日期")){
					return;
				}
				str=str+"&cb_del_date=1";
			}
			if(document.getElementById("cb_est").checked){
				var estName=document.getElementById("est_name").value.trim();
				if(estName==null || estName==""){
					ShowAlert('提示框','请输入订货单位',200,100);
					return;
				}
				str=str+"&cb_est=1";
			}
			if(document.getElementById("cb_wc").checked){
				var wcId=document.getElementById("wc_id").value;
				if(wcId==null || wcId=="" || wcId=="0"){
					ShowAlert('提示框','请选择工作中心',200,100);
					return;
				}
				str=str+"&cb_wc=1";
			}
			if(document.getElementById("cb_content").checked){
				var content=document.getElementById("content").value.trim();
				if(content==null || content==""){
					ShowAlert('提示框','请输入摘要',200,100);
					return;
				}
				str=str+"&cb_content=1";
			}
			if(document.getElementById("cb_mng").checked){
				var mngName=document.getElementById("mng_name").value.trim();
				if(mngName==null || mngName==""){
					ShowAlert('提示框','请输入业务员姓名',200,100);
					return;
				}
				str=str+"&cb_mng=1";
			}
			if(document.getElementById("cb_foll").checked){
				var follName=document.getElementById("foll_name").value.trim();
				if(follName==null || follName==""){
					ShowAlert('提示框','请输入跟单员姓名',200,100);
					return;
				}
				str=str+"&cb_foll=1";
			}
			if(document.getElementById("cb_mkn").checked){
				var mkn=document.getElementById("mkn").value.trim();
				if(mkn==null || mkn==""){
					ShowAlert('提示框','请输入开工人姓名',200,100);
					return;
				}
				str=str+"&cb_mkn=1";
			}
			if(document.getElementById("cb_ts").checked){
				var tsId=document.getElementById("ts_id").value;
				if(tsId==null || tsId=="" || tsId=="0"){
					ShowAlert('提示框','请选择帐套',200,100);
					return;
				}
				str=str+"&cb_ts=1";
			}
			if(document.getElementById("cb_order").checked){
				var orderBy=document.getElementById("order_by").value;
				if(orderBy==null || orderBy==""){
					ShowAlert('提示框','请选择排序类型',200,100);
					return;
				}
				str=str+"&cb_order=1";
			}
			if(document.getElementById("cb_make").checked){
				str=str+"&cb_make=1";
			}
		}else{//快速
			str="search_type=2";
		}
		var paraStr=createPageParaStr();
		if(paraStr!=""){
			str=str+"&"+paraStr;
		}
		window.location="../business/BusinessBillListForComplete.html?"+str;
	}
	function doGo(pageIndex){
		var str=getSearchCondition();
		str=str+"&current_page="+pageIndex;
		window.location="../business/BusinessBillListForComplete.html?"+str;
	}
	function getSearchCondition(){
		var searchType="1";
		var str="search_type="+searchType;
		if(searchType=="1"){//高级
			
			
			
			
			
			
			
			str=str+"&cb_ts=1";
			
			
			
			
		}else{//快速
			
		}
		var paraStr=createProgramParaStr();
		if(paraStr!=""){
			str=str+"&"+paraStr;
		}
		return str;
	}
	function DoubleClick(it){
		var ob_arr = document.getElementsByName("query_checkbox");
		var id="",wcId="";
		if(ob_arr.length>=it.getAttribute("index")){
			id=ob_arr[it.getAttribute("index")-1].value;
			wcId=ob_arr[it.getAttribute("index")-1].getAttribute("wcId");
		}
		
		if(id==""){
			return;
		}
		doShow(id,wcId);
	}
	function doMultiPrint(){
		var ob_arr = document.getElementsByName("query_checkbox");
		var id="",wcId="";
		for (i=0;i<ob_arr.length;i++){
			if ((ob_arr[i].checked == true)){
				if(id!=""){
					id=id+";";
				}
				if(wcId!=""){
				   wcId=wcId+";";
				}
				id = id+ob_arr[i].value;
				wcId = wcId+ob_arr[i].getAttribute("wcId");
			}
		}
		if(id!=""){
			doPrint(id,wcId);
		}else{
			ShowAlert('提示框','请选择要打印的单据',200,100);
		}
	}
	function doAutoCheck(objId){
		if(document.getElementById(objId).style.visibility!="hidden"){
			document.getElementById(objId).checked=true;
		}
	}
	function doShow(id,wcId){
		var url="../business/BusinessBillInfoForComplete.html?id="+id+"&wc_id="+wcId;
		ShowIframe("业务单完工",url,900,500,"refreshWin()",1024,600);
	}
	function doLabel(id,wcId){
		var url="../business/BusinessBillInfoForLabel.html?id="+id+"&wc_id="+wcId;
		showWin(900,600,url);
	}
	function doPrint(id,wcId){
		showWin(900,600,"../business/BusinessBillPrint.html?type=MAKE&id="+id+"&wc_id="+wcId);
	}
	function refreshWin(){
		if(popRetVal!=null){
			window.location=window.location;
		}
	}
	function selectStafferName(objId,checkObjId){
		var url="../base/StafferMainForSelect.html";
		ShowIframe("选择员工",url,800,500,"selectStafferNameCallBack('"+objId+"','"+checkObjId+"')");
	}
	function selectStafferNameCallBack(objId,checkObjId){
		if(popRetVal!=null){
			var arr=popRetVal.split(";");
			document.getElementById(objId).value=arr[1];
			doAutoCheck(checkObjId);
		}
	}
	function doOutList(businessBillCode,wcId){
		var url="../storehouse/InOutItemListForBusinessBill.html?type=ALONE&business_bill_code="+encodeURIComponent(businessBillCode)+"&other_type=WORK_CENTER&other_id="+wcId;
		ShowIframe("用料记录",url,900,500);
	}
	function doOutBill(businessBillId,wcId){
		
		var strUrl="../storehouse/OutBillNew.html?alert_type=FORM&data_type=BUSINESS&business_bill_id="+businessBillId+"&requirer_type=WORK_CENTER&requirer_id="+wcId;
		showWin(1024,600,strUrl);
		
		
	}
	function doComplete(idStr,wcIdStr){
		ShowConfirm('确认框','确定将选择的业务单完工吗？',340,80,"doCompleteCallBack('"+idStr+"','"+wcIdStr+"')");
	}
	function doCompleteCallBack(idStr,wcIdStr){
		if(popRetVal!=null){
			var url="../business/BusinessBillCompleteBatch.html?id_str="+idStr+"&wc_id_str="+wcIdStr;
			ShowIframe("业务单完工",url,200,200,"refreshWin()");
		}
	}
	function doMutiComplete(){
		var ob_arr = document.getElementsByName("query_checkbox");
		var str="";
		var wcStr="";
		for (i=0;i<ob_arr.length;i++){
			if ((ob_arr[i].checked == true)){
				if(str!=""){
					str=str+";";
					wcStr=wcStr+";";
				}
				str = str+ob_arr[i].value;
				wcStr = wcStr+ob_arr[i].getAttribute("wcId");
			}
		}
		
		if(str!=""){
			doComplete(str,wcStr);
		}else{
			ShowAlert('提示框','请选择要完工的业务单',200,100);
		}
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSearch();
		}
	}
	function showList(type,id){
		var str="search_type=1";
		if(type=="UN_MAKE"){
			str=str+"&cb_make=1&maked=N";
		}else if(type=="MAKE"){
			str=str+"&cb_make=1&maked=Y";
		}else if(type=="ORDE_DATE_ASC"){
			str=str+"&cb_order=1&order_by=ORDER_DATE&order_sc=ASC";
		}else if(type=="ORDE_DATE_DESC"){
			str=str+"&cb_order=1&order_by=ORDER_DATE&order_sc=DESC";
		}else if(type=="WC"){
			str=str+"&cb_wc=1&wc_id="+id;
		}else{
			return;
		}
		window.location="../business/BusinessBillListForComplete.html?"+str;
	}
	function doFeeBill(bbId,bbCode){
		
		var strUrl="../finance/FeeBillNew.html?alert_type=SHOW&bb_id="+bbId+"&bb_code="+encodeURIComponent(bbCode);
		showWin(1024,420,strUrl);
		
		
	}
	function showSmsSubscribe(){
		
		showWin(520,640,'/sms/SmsSubscribe.html');
		
		
	}
	function selectEstName(){
		var url="../base/EstablishmentListForSelect.html?type=CLIENT";
		ShowIframe("选择客户",url,900,500,"selectEstNameCallBack()");
	}
	function selectEstNameCallBack(){
		if(popRetVal!=null){
			document.getElementById("est_name").value=popRetVal[1];
			doAutoCheck("cb_est");
		}
	}
</script>
</head>
<body oncontextmenu="return false">
<div class="Wrap"><!-- 页面主框架 -->
    
	<div id="ListContainer" class="Container"><!-- 主体容器 -->
	    
	    <!-- 标题栏 -->
	    <div class="Heading BillIcon">
	        <div class="HeadingContent">
	            <h1>业务单完工</h1>
	            <span class="Note">工厂在这里将已经制作完成的业务单设置为已完工状态，方便门市部了解制作进度</span>
	        </div>
	    </div>
	
		<!-- 主内容 -->
		<div class="Content">
	        <!-- 筛选控件栏 -->
	        <div class="FilterBar ClearFix">
	            <div class="SearchIcon"></div>
	            <span class="fl">
	            	<table class="MoreOption" cellpadding="0" cellspacing="0">
	            		<th class="c1" width="80px">
	            			<input name="" type="checkbox" name="cb_bill_code" id="cb_bill_code"  style="visibility:hidden" />
	            			业务单号
	            		</th>
	            		<td class="c1" width="260px">
	            			<input type="text" class="TextBox" style="width:200px;" maxlength="50" name="bill_code" id="bill_code" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_bill_code');" value="" >
							<input type="hidden" id="hid_bill_code" value="">
	            		</td>
	            	</table>
	            </span>
				<span class="fr">
	            	<a href="javascript:;" id="lnkMoreOption">更多查询选项</a>
	            	
					<!-- <a href="javascript:showSmsSubscribe();" style="color:green" title="设置业务单完工时，系统自动发手机短信通知该业务单上的联系人；自动发消息通知业务单的跟单人。">设置消息提醒</a> -->
					
				  	<input type="button" value=" 查 询" onClick="doSearch();" class="buttom search-but" id="sSearchButton" name="sSearchButton">
					<input type="button" value=" 打 印" onClick="doMultiPrint();" class="buttom search-print" id="printButton" name="printButton">
					<input type="button" class="buttom search-audit" value=" 完 工" onClick="doMutiComplete();" id="sCompleteButton" name="sCompleteButton">
	            </span>
				<div id="dvMoreOptionBox" class="MoreOptionBox" style="display:none;">
					<table class="MoreOption" cellpadding="0" cellspacing="0">
						<tr>
							<th class="c1" width="80px">
			        			<input name="" type="checkbox" name="cb_order_date" id="cb_order_date" >
			        			订货日期
			        		</th>
			    			<td width="260px">
			        			<input type="text" class="TextBox Datetime" maxlength="15" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_order_date');" id="start_date" name="start_date" value="" >
								<img src="../images/calendar.gif" class="imgIconButton" onClick="displayCalendar(document.getElementById('start_date'),'yyyy-mm-dd',this,false,'doAutoCheck(\'cb_order_date\')');">
								<input type="hidden" id="hid_start_date" value="">
					            	至
								<input type="text" class="TextBox Datetime" maxlength="15" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_order_date');" id="end_date" name="end_date" value="" >
								<img src="../images/calendar.gif" class="imgIconButton" onClick="displayCalendar(document.getElementById('end_date'),'yyyy-mm-dd',this,false,'doAutoCheck(\'cb_order_date\')');">
								<input type="hidden" id="hid_end_date" value="">
			    			</td>
			    			<th class="c2" width="80px">
			        			<input type="checkbox" name="cb_make" id="cb_make" ></td>
			        			开工状态
			        		</th>
			    			<td class="c2" width="250px">
			        			<input type="radio" name="maked" id="make1" onClick="doAutoCheck('cb_make');" >已开工
								<input type="radio" name="maked" id="make2" onClick="doAutoCheck('cb_make');" checked="true">未开工
								<input type="radio" name="maked" id="make3" onClick="doAutoCheck('cb_make');" >全部
			    			</td>
			    		</tr>
						<tr>
			    			<th class="c1">
			    				<input name="" type="checkbox" name="cb_del_date" id="cb_del_date" >
			    				交货日期
			    			</th>
			    			<td>
			    				<input type="text" class="TextBox Datetime" maxlength="15" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_del_date');" id="del_start" name="del_start" value="" >
								<img src="../images/calendar.gif" class="imgIconButton" onClick="displayCalendar(document.getElementById('del_start'),'yyyy-mm-dd',this,false,'doAutoCheck(\'cb_del_date\')');">
								<input type="hidden" id="hid_del_start" value="">
					            	至
								<input type="text" class="TextBox Datetime" maxlength="15" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_del_date');" id="del_end" name="del_end" value="" >
								<img src="../images/calendar.gif" class="imgIconButton" onClick="displayCalendar(document.getElementById('del_end'),'yyyy-mm-dd',this,false,'doAutoCheck(\'cb_del_date\')');">
								<input type="hidden" id="hid_del_end" value="">
			    			</td>
			    			<th class="c2">
			    				<input type="checkbox" name="cb_mng" id="cb_mng" >
			    				业务员
			    			</th>
			    			<td class="c3">
			    				<input type="text" class="TextBox" maxlength="15" name="mng_name" id="mng_name" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_mng');" value="" >
								<img class="imgIconButton" src="../images/make-a.gif" onClick="selectStafferName('mng_name','cb_mng');" />
								<input type="hidden" id="hid_mng_name" value="">
			    			</td>
			    		</tr>
						<tr>
			    			<th class="c1">
			    				<input type="checkbox" name="cb_est" id="cb_est" >
			    				订货单位
			    			</th>
			    			<td class="c1">
			    				<input type="text" class="TextBox" maxlength="50" name="est_name" id="est_name" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_est');" value="" >
								<img class="imgIconButton" src="../images/make-a.gif" onClick="selectEstName();" />
								<input type="hidden" id="hid_est_name" value="">
			    			</td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_foll" id="cb_foll" >
			        			跟单员
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox" maxlength="15" name="foll_name" id="foll_name" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_foll');" value="" >
	                        	<img src="../images/make-a.gif" class="imgIconButton" onClick="selectStafferName('foll_name','cb_foll');" />
	                        	<input type="hidden" id="hid_foll_name" value="">
			    			</td>
			    		</tr>
						<tr>
			    			<th class="c1">
			    				<input type="checkbox" name="cb_content" id="cb_content" >
			    				摘要
			    			</th>
			    			<td class="c1">
			    				<input type="text" class="TextBox" maxlength="50" name="content" id="content" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_content');" value="" >
								<input type="hidden" id="hid_content" value="">
			    			</td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_mkn" id="cb_mkn" >
			        			开工人
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox" maxlength="15" name="mkn" id="mkn" onKeyUp="checkInput();" onFocus="doAutoCheck('cb_mkn');" value="" >
	                        	<img src="../images/make-a.gif" class="imgIconButton" onClick="selectStafferName('mkn','cb_mkn');" />
	                        	<input type="hidden" id="hid_mkn" value="">
			    			</td>
			    		</tr>
						<tr>
							<th class="c1">
			        			<input type="checkbox" name="cb_ts" id="cb_ts" checked="true">
	                        	账套
			        		</th>
			    			<td class="c1">
			        			<select name="ts_id" id="ts_id" onFocus="doAutoCheck('cb_ts');">
				    				<option value="0">==请选择账套==</option>
				    				
									<option value="1" >新异</option>
									<option value="2" selected>网络公司</option>
								</select>
			        		</td>
			        		<th class="c2">
			        			<input type="checkbox" name="cb_wc" id="cb_wc" >
			        			工作中心
			        		</th>
	                    	<td class="c3">
	                    		<select name="wc_id" id="wc_id" onFocus="doAutoCheck('cb_wc');" onChange="doWcIdChange();">
					  				<option value="0">==请选择==</option>
					  				
								</select>
	                    	</td>
						</tr>
					</table>
			    	<div class="OptionOrderBy">
	                	<input type="checkbox" name="cb_order" id="cb_order" >
	                    	排序类型
	                    <select name="order_by" id="order_by" onFocus="doAutoCheck('cb_order');">
	                        <option value="">==请选择==</option>
					  		<option value="ORDER_DATE" >订货日期</option>
					  		<option value="DELIVER_DATE" >交货日期</option>
					  		<option value="BILL_CODE" >业务单号</option>
	                    </select>
	                    <select name="order_sc" id="order_sc" onFocus="doAutoCheck('cb_order');">
	                        <option value="ASC" >升序</option>
	                        <option value="DESC" >降序</option>
	                    </select>
	                    <span class="fr"><a href="javascript:;" id="lnkHiddenOption">隐藏查询选项</a></span>
	                </div>
				</div>
			</div>
			
			<!-- 提示信息显示栏 -->
	        <div class="MsgBar">
	            
<table width="98%" border="0" cellpadding="0" cellspacing="0">
	<tr id="errorMsgTr" style="display:none">
	  <td>
	  	<div class="msg-error" id="errorMsgTd">
	  	
	  	</div>
	  </td>
	</tr>
</table>
	        </div>

			<!-- 上栏 分页、操作等 -->
	        <div class="TopToolBar">
	            <table class="ListNoteInfo" cellpadding="0" cellspacing="0">
	            	<tr>
	                	<td>
	                		选择：
	                		<a href="javascript:showList('ORDE_DATE_DESC');">按订货日期降序</a>
	                		<a href="javascript:showList('ORDE_DATE_ASC');">按订货日期升序</a>
	                		<a href="javascript:showList('UN_MAKE');">未开工</a>
						  	<a href="javascript:showList('MAKE');">已开工</a>
						  	
						</td>
	            	</tr>
	            </table>
			</div>

	      	<div class="table-list">
		        <table width="100%">
		          	<tr>
					  	<th width="14"><input type="checkbox" onClick="javascript:checkall(this);"></th>
					  	<th width="12%">单号</th>
						<th width="8%">订货日期</th>
						<th width="12%">订货单位</th>
						<th width="12%">摘要</th>
						<th width="8%">交货日期</th>
						<th width="14%">跟单员</th>
						<th width="8%">开工状态</th>
						<th width="8%">工作中心</td>
						<th width="18%">操作</th>
		          	</tr>
				  	
	        	</table>
      		</div>
      		
      		<!-- 底栏 分页、操作等 -->
	        <div class="BottomToolBar ClearFix">
			    	
    <div class="table-bot">
    	
    	
    	 
    	  <img src="../images/but001.gif"/>
    	  <img src="../images/but002.gif"/>
    	    	
    	第 <input type="text" name="pageNumber" style="width:30px" value="0"
    	onKeyDown="javascript:doJump(this.value);" class="TextBox" style="vertical-align:bottom;"> 页 
    	共0页
		
		
        <img src="../images/but003.gif"/>
        <img src="../images/but004.gif"/>
		
    </div>
	        </div>
		</div>
	</div>
	
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td align="center" height="0">
				<iframe name="detailFrm" id="detailFrm" scrolling="no" border="0" frameborder="0" height="0" width="100%" src=""></iframe>
			</td>
		</tr>
	</table>
	
</div>
</body>
</html>
<script type="text/javascript">
	function ChangeWindowSize( container, maxWidth ){
	    setTimeout( function(){
	        var w1 = document.documentElement.clientWidth-40;
	        if( w1>maxWidth ) w1 = maxWidth;
	        else if( w1<970 ) w1 = 960;
	        container.style.width = w1+'px';
	    }, 300 );
	}
	var IsAdvSearch = false;
	(function(){
		doInit();
	    var ListContainer = document.getElementById('ListContainer');
	    ChangeWindowSize( ListContainer, 2020 );    // 超过 1280 的最大 1260 ，不全部铺满
	
	    var lnkMoreOption   = document.getElementById('lnkMoreOption');
	    var lnkHiddenOption = document.getElementById('lnkHiddenOption');
	    lnkMoreOption.onclick = function(){
	    	IsAdvSearch = true;
	        document.getElementById('dvMoreOptionBox').style.display = 'block';
	        document.getElementById('cb_bill_code').style.visibility = 'visible';
	        this.style.visibility = 'hidden';
	    };
	    lnkHiddenOption.onclick = function(){
	    	IsAdvSearch = false;
	        document.getElementById('dvMoreOptionBox').style.display = 'none';
	        document.getElementById('cb_bill_code').style.visibility = 'hidden';
	        lnkMoreOption.style.visibility = 'visible';
	    };
	})();
</script>
